package com.yxw.live_vod_backend_boot.controller;

import com.yxw.live_vod_backend_boot.service.VideoCoinService;
import com.yxw.live_vod_facade.dto.VideoCoinQueryDTO;
import com.yxw.live_vod_facade.vo.YxVideoCoinVO;
import com.yxw.yxnet_cd_center.common.dto.PageVO;
import com.yxw.yxnet_cd_center.common.utils.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 视频币明细后台
 * @author xiexuxin
 * @date 2023-12-12
 */
@RestController
@Api(value = "视频币明细后台", tags = "视频币明细后台")
@Slf4j
@RequestMapping("/api/backend/video_coin")
public class VideoCoinController {

    @Autowired
    private VideoCoinService videoCoinService;

    @ApiOperation(value = "获取视频币明细列表")
    @PostMapping(value = "/get_video_coin_list_backend")
    public BaseResult<PageVO<YxVideoCoinVO>> getVideoCoin(@RequestBody VideoCoinQueryDTO dto){
        return videoCoinService.getVideoCoin(dto);
    }
}
